gnttab: simplify shared entry v1 vs v2 handling
authorJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:26:03 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2015 10:26:03 +0000 (12:26 +0200)
commitf4c73bad0896f8cf6f9d9ca6754f0dda1d00ca03
tree2171e95175adddccc3c3634e5f2ffb972bb94ff0
parent9f90cce7cfc13ef87f2262196f999741e7851450
gnttab: simplify shared entry v1 vs v2 handling

In a number of places both v1 and v2 pointers are being obtained when
none or just one suffices. Additionally in __acquire_grant_for_copy()
the flow of if/else-if can be slightly improved by re-ordering.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/grant_table.c